package com.example.yangjintingtest.domain;

import lombok.Getter;
import lombok.ToString;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component // 用于将Student类作为Bean注入到Spring容器中
@Getter
@ToString
public class Student {
    @Value("${Student.id}")
    private int id; //id
    @Value("${Student.name}")
    private String name; //名称
    private List hobby; //爱好
    private String[] family; //家庭成员
    private Map map;
    private Pet pet; //宠物
}
